package com.example.skillcinema.adapters

import androidx.recyclerview.widget.DiffUtil
import com.example.skillcinema.db.responses.ImageItemResponse

class GalleryDiffUtilCallback : DiffUtil.ItemCallback<ImageItemResponse>() {
    override fun areItemsTheSame(
        oldItem: ImageItemResponse,
        newItem: ImageItemResponse
    ): Boolean = oldItem.imageUrl == newItem.imageUrl

    override fun areContentsTheSame(
        oldItem: ImageItemResponse,
        newItem: ImageItemResponse
    ): Boolean = oldItem == newItem
}